package router

import (
	"net/http"
	"github.com/gin-gonic/gin"
	"lab.com/controller"
)

// 上传文件接口
func initUploadRouter(e *gin.Engine) {

	uploadControl := controller.Upload
	e.StaticFS("/static", http.Dir("./static/"))
	e.POST("upload", uploadControl.FilesUpload)
	e.POST("upload-local", uploadControl.FilesUploadToServer)

}
